<?php

abstract class BaseMySQLDAO {
    private $context;
    private $entityName;

    public function __construct(BaseContext $context, $entityName) {
        $this -> context = $context;
        if ($context == NULL) {
            $this -> context = new BaseContext();
        }
        $this -> entityName = $entityName;
    }

    protected function getContext() {
        return $this -> context;
    }

    public function getEntityName() {
        return $this -> entityName;
    }

}
